package com.study.ui.anim

import android.transition.Transition
import android.view.Window
import com.study.base.BaseActivity
import com.study.ui.R

/**
 * <pre>
 *     author : slx
 *     time   : 2020/04/03
 *     desc   : Activity转场动画2
 * </pre>
 */
class ActivityAnim2Activity : BaseActivity() {
    override fun generateLayoutId() = R.layout.activity_activity_anim2
    override fun initBeforeContent() {
        // 设置contentFeature,可使用切换动画
        window.requestFeature(Window.FEATURE_CONTENT_TRANSITIONS)
        val explode: Transition = android.transition.TransitionInflater.from(this).inflateTransition(android.R.transition.explode)
        window.enterTransition = explode
    }
}